<!DOCTYPE html>
<html lang="en">

<!--
  Author：蓝田_Loto
  Date：2019-12-24 11:26
  PageName：b_Location.html
  Function：BOM对象 - Location
-->

<head>
    <meta charset="UTF-8">
    <title>BOM对象 - Location</title>

    <script type="text/javascript">
        function func() {
            location.href = "a_Window.html";
        }
    </script>
</head>

<body>
<!-- 通过JS代码控制页面的跳转 -->
<input type="button" value="跳转到history页面" onclick="func()"/>
</body>
</html>